package com.ruoyi.project.WebMoudle.advShow.mapper;

import java.util.List;

import com.ruoyi.project.WebMoudle.advShow.domain.AdvDistance;
import com.ruoyi.project.WebMoudle.advShow.domain.AdvShow;
import com.ruoyi.project.WebMoudle.advShow.domain.SearchShop;
import org.apache.ibatis.annotations.Param;

/**
 * 店铺广告Mapper接口
 * 
 * @author ruoyi
 * @date 2020-07-02
 */
public interface AdvShowMapper 
{
    /**
     * 查询店铺广告
     * 
     * @param id 店铺广告ID
     * @return 店铺广告
     */
    public AdvShow selectAdvShowById(Long id);

    /**
     * 查询店铺广告列表
     * 
     * @param advShow 店铺广告
     * @return 店铺广告集合
     */
    public List<AdvShow> selectAdvShowList(AdvShow advShow);

    /**
     * 新增店铺广告
     * 
     * @param advShow 店铺广告
     * @return 结果
     */
    public int insertAdvShow(AdvShow advShow);

    /**
     * 修改店铺广告
     * 
     * @param advShow 店铺广告
     * @return 结果
     */
    public int updateAdvShow(AdvShow advShow);

    /**
     * 删除店铺广告
     * 
     * @param id 店铺广告ID
     * @return 结果
     */
    public int deleteAdvShowById(Long id);

    /**
     * 批量删除店铺广告
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteAdvShowByIds(String[] ids);

    List<AdvDistance> queryAdvList(@Param("currentLat") String currentLat, @Param("currentLng") String currentLng);

    List<AdvDistance> searchShopList(SearchShop ssp);
}
